﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;

namespace StudentManagement.ViewModel
{
    /// <summary>
    /// 列表对象基类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public abstract class VMListBase<T> : ObservableCollection<T>
    {
        public VMListBase() : base() { }

        public VMListBase(IEnumerable<T> viewModels) : base()
        {
            foreach (var viewMode in viewModels)
            {
                this.Add(viewMode);
            }
        }

    }
}
